
<!DOCTYPE html>
<html ng-app="myApp">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<!-- Bootstrap Core CSS -->
<link href="/megaacerto/style/css/bootstrapSpaceLab.css"
	rel="stylesheet">

<link rel="stylesheet" type="text/css"
	href="/megaacerto/style/css/styles.css" />
<!-- PARA FAZER MASCARA FUNCIONAR ANGULAR JS/	-->
<script src="/megaacerto/javascript/recursos/jquery-1.2.6.pack.js"></script>

<!-- 
	<style type="text/css">
		.modal-body {
			position: static;
			padding-bottom: 18px;
		}
	</style>
 -->
</head>

<body ng-controller="adminBolao">
	<div ng-include src="'/megaacerto/page/menu.jsp'"></div>
	<div id="wrap">
		<div id="main" class="container clear-top">
			<div class="row">
				<div class="panel panel-primary">
					<div class="panel-heading">
						<h3 class="panel-title">Liberar Pagamento Sorteio</h3>
					</div>
					<div class="panel-body">
						<form class="form-horizontal" name="myForm">
							<div class="form-group">
								<table class="table table-striped table-hover ">
									<thead>
										<tr>
											<th><a href="#" ng-click="carregarBolaoParaLiberacao('0')"><img
													alt="" ng-disable="true" ng-src="../img/btnmegasena.jpg"></a></th>
											<th><a href="#" ng-click="carregarBolaoParaLiberacao('1')"><img
													alt="" ng-src="../img/btnquina.jpg"> </a></th>
											<th><a href="#" ng-click="carregarBolaoParaLiberacao('2')"><img
													alt="" ng-src="../img/bntlotomania.jpg"> </a></th>
											<th><a href="#" ng-click="carregarBolaoParaLiberacao('3')"><img
													alt="" ng-src="../img/btnduplasena.jpg"> </a></th>
											<th><a href="#" ng-click="carregarBolaoParaLiberacao('4')"><img
													alt="" ng-src="../img/bntlotofacil.jpg"> </a></th>
										</tr>
									</thead>
								</table>

							</div>
							<legend>
								<b>{{legenda}}</b>
							</legend>
							<legend>
								<b>{{mesagem}}</b>
							</legend>
							<div class="form-group">
								<label class="control-label col-xs-2">Indentificador
									Bolão</label>
								<div class="col-xs-6">
									<select class="form-control" ng-required="true" ng-model="bolaoSelecionado" >
										<option ng-repeat="bolao in boloes" value="{{bolao.id}}"  >{{bolao.identificadorGrupo}}</option>
									</select>
								</div><button class="btn btn-primary" ng-click="buscar(bolaoSelecionado)">Buscar</button>
							</div>
						</form>
						<table class="table table-striped table-hover ">
							<thead>
								<tr>
									<th>Jogo sorteado</th>
									<th>Descrição Premio</th>
									<th>QTD. Ganhadores</th>
									<th>Multiplicador</th>
									<th>Valor do Premio</th>
								</tr>
							</thead>
							<tbody ng-repeat="resultado in resultados">
								<tr>
									<th>{{resultado.seqJogoPremiado}}</th>
									<td>{{resultado.descTipoDeGanho}}</td>
									<td>{{resultado.qntDeGanhadores}}</td>
									<td>{{resultado.multiplicador}}</td>
									<td>{{resultado.valorDoGanho | currency:'R$'}}</td>
								</tr>
							</tbody>
						</table>
						<span><h4><b> Valor Total: {{total | currency:'R$'}} </b></h4></span>
						<!-- 
						<table class="table table-striped table-hover ">
							<thead>
								<tr>
									<th>QTD. Numeros Marcados</th>
									<th>Desc. Sequencia OB</th>
									<th>Seq Obrigatoria</th>
									<th>QTD. Jogos</th>
								</tr>
							</thead>
							<tbody ng-repeat="desdobramento in desdobramentos">
								<tr>
									<th>{{desdobramento.qtdNumerosMarcado}}</th>
									<td>{{desdobramento.descricaoSeqObrigatoria}}</td>
									<td>{{desdobramento.seqObrigatoria}}</td>
									<td>{{desdobramento.qtdJogos}}</td>
								</tr>
							</tbody>
						</table>
 -->
						<div class="form-group">
							<div class="col-xs-offset-2 col-xs-10">
								<button class="btn btn-primary"	ng-click="liberarPagamentoBolao(bolaoSelecionado)">Liberar Pagamento</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<!--Criar Pagefooter  -->
	<div ng-include src="'/megaacerto/page/footer.html'"></div>

	<script type="text/javascript"
		src="/megaacerto/javascript/recursos/angular_2.min.js"></script>

	<script type="text/javascript"
		src="/megaacerto/javascript/control/angular-route.js"></script>

	<script type="text/javascript"
		src="/megaacerto/javascript/recursos/ui-utils.js"></script>
	<script src="/megaacerto/javascript/recursos/ng-currency.js"></script>
	
			<script type="text/javascript"
		src="/megaacerto/javascript/recursos/ui-bootstrap-tpls-0.11.0.min.js"></script>
	
		
		
	<script type="text/javascript"
		src="/megaacerto/javascript/control/admLiberarPagamentoSorteio.js"></script>

</body>

</html>